package com.xique.park.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.park.api.factory.RemoteParkPayPpFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(contextId = "RemoteParkPayPpService", value = ServiceNameConstants.PARK_BIZ_SERVICE, fallbackFactory = RemoteParkPayPpFallbackFactory.class)
public interface RemoteParkPayPpService {

   /**
    * @author caogq
    * @description:  删除支付配置
    * @date: 2022/6/10 15:47
    * @Param [parkId]
    */
    @DeleteMapping("payPp/delete")
    AjaxResult delete(@RequestParam("parkId") Long parkId);

    /**
     * 获取车场的支付配置
     * @param parkId
     * @return
     */
    @GetMapping("payPp/getParkPayPp")
    public AjaxResult getParkPayPp(@RequestParam("parkId")Long parkId);

}
